#include "requestsong.h"

#include <QtGui>
#include "ktv/model/resource/resource.h"

RequestSong::RequestSong(QGraphicsItem *parent)
    : MyItem(parent)
{
    width = 300;
    height = 50;
    backgroundPixmap = Resource::getInstance()->backgroundPixmap_selectedSong;
    text = "";
}

QRectF RequestSong::boundingRect() const
{
    return QRectF(-width/2.0, -height/2.0, width, height);
}

void RequestSong::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
    Q_UNUSED(option);
    Q_UNUSED(widget);
    painter->drawPixmap(-width/2.0, -height/2.0, width, height, *backgroundPixmap);
    painter->setFont(QFont("Timers", 60, QFont::Bold));
//    painter->drawText(0, 0, text);
}

void RequestSong::setText(QString t)
{
    text = t;
}
